<?php
declare (strict_types = 1);

namespace app\common\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class RechargeCoin extends Model
{



    public static function coinData()  {
        $res =self::where(['status'=>PublicStatus::PUBLIC_STATUS_ONE])->order('weight asc')->select()->each(function($item,$key){
            $item['price'] = intval($item['price']);
            return $item;
        })->toArray();
        return $res;
    }
}
